/*
	jGrouse framework
	Copyright 2007 by Denis Riabtchik 
	All rights reserved.
	
	Licensed under modified BSD license. See license.txt for details
*/

/**
	Button widget. Equivalent to HTML's &lt;input type="button"&gt; control. Registered under "button" alias.
	@module jgrouse.widgets.Button
	@requires jgrouse.widgets.InputControl
*/
jgrouse.module({
	name: 'jgrouse.widgets.Button',
	requires : ['jgrouse.widgets.InputControl'],
	imports : ['jgrouse.widgets.InputControl'],
	body : function(embed)
	{
		eval(embed);
		jgrouse.widgets.registerWidget('button', 'jgrouse.widgets.Button');
		
		/**
			@class jgrouse.widgets.Button
			@extends jgrouse.widgets.InputControl
		*/
		jgrouse.define('jgrouse.widgets.Button', 'jgrouse.widgets.InputControl', function(embed)
		{
			eval(embed);
			
			return {
				initialize : function(options, styles)
				{
					_super(this, 'initialize', options, styles);
					this.setAttribute('type', 'button');
				}
			}
		});
	}
	
});